package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.BatteryAgent;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 电池运营商关联关系映射
 *
 * @Date:Created in 2018/7/26 10:26
 * @Author:
 * @Modified By: zxj 2018/7/26 10:26
 */
public interface BatteryAgentMapper extends MasterMapper {
    
    /**
    * 查询
    * @Param [id]
    * @Return cc.yugu.yhdw.common.domain.hdw.Battery
    * @Author zxj 2018/7/26
    */
    public BatteryAgent find(@Param("batteryId") String batteryId);
    /**
    * 往hdw_battery_agent 表中插入数据
    * 
    * @Param: [battery]
    * @Return: int
    * @Author By: zjn 2018/7/26  15:28
    */ 
    public int insert(BatteryAgent battery);
    /**
    * 更新表
    * 
    * @Param: [batteryAgent]
    * @Return: int
    * @Author By: zjn 2018/7/26  16:57
    */ 
    public int update(BatteryAgent batteryAgent);
}
